package org.common.utils.net.netty.http.intercept.entity;

import io.netty.handler.codec.http.FullHttpRequest;
import org.common.utils.net.netty.http.core.HttpRequest;
import org.common.utils.net.netty.http.intercept.HttpIntercept;

/**
 * 默认的favicon拦截器
 * @author zhouzhibing
 * @date 2025/11/23 17:52
 */
public class FaviconIntercept implements HttpIntercept {

    @Override
    public boolean channelReadStart(FullHttpRequest request) {
        // 过滤favicon.ico
        return !request.uri().equals("/favicon.ico");
    }

    @Override
    public boolean handlerRequestBefore(HttpRequest request) {
        return true;
    }
}
